<div class="row">
	<?=$system_message;?>
	<fieldset>
		<legend class="label">System Settings</legend>
		
		<table class="table">
			<thead>
				<tr>
					<td>Name of Settings</td>
					<td>Enabled</td>
					<td>Disabled</td>
				</tr>
			</thead>
			<tbody>
				<?if(!empty($options)):?>
					<form action="<?=site_url('settings');?>" method="POST">
					<?foreach($options as $k => $v):?>
						<?foreach($v as $key=>$value):?>
							<tr>
								<td><?=$key;?></td>
								<?if($value == 1):?>
									<td style="text-align:center;"><i class="icon-ok"></i></td>
									<td style="text-align:center;"><input type="radio" name="<?=$key;?>" value="0"></td>
								<?else:?>
									<td style="text-align:center;"><input type="radio" name="<?=$key;?>" value="1"></td>
									<td style="text-align:center;"><i class="icon-ok"></i></td>
								<?endif;?>
							</tr>
						<?endforeach;?>
					<?endforeach;?>
					<tr>
						<td colspan="3">
							<input type="submit" name="update_system_settings" class="btn btn-mini btn-primary">
						</td>
					</tr>
					</form>
				<?else:?>
				<tr>
					<td colspan="3">No Settings Available</td>
				</tr>
				<?endif?>
				
			</tbody>
		</table>
	</fieldset>
</div>